package com.xhl.controller;

import com.xhl.entity.User;
import com.xhl.service.UserClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user")
public class UserConsumerController {
    @Autowired
    private UserClientService userClientService;

    @RequestMapping("/all")
    public List<User> queryUserAll(){
        return userClientService.queryUserAll();
    }

}

